home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
GCC
/
CLIB
/
!clib
/
h
/
string
< prev
next >
Wrap
Text File
|
1997-03-22
|
3KB
|
96 lines
/* string.h
For use with the GNU compilers and the SharedCLibrary.
(c) Copyright 1997, Nick Burrett. */
#ifndef __STRING_H
#define __STRING_H
#ifndef __STDDEF_H
#include <stddef.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* Copy n bytes from src to dest. */
extern void *memcpy (void *dest, const void *src, size_t n);
/* Copy n bytes from src to dest, guaranteeing correct
behaviour for overlapping data. */
extern void *memmove (void *dest, const void *src, size_t n);
/* Copy src to dest. */
extern char *strcpy (char *dest, const char *src);
/* Copy no more than n chars of src to dest. */
extern char *strncpy (char *dest, const char *src, size_t n);
/* Append src onto dest. */
extern char *strcat(char *dest, const char *src);
/* Append no more than n chars from src to dest. */
extern char *strncat(char *dest, const char *src, size_t n);
/* Compare n bytes of s1 and s2. */
extern int memcmp(const void *s1, const void *s2, size_t n);
/* Compare s1 and s2. */
extern int strcmp(const char *s1, const char *s2);
/* Compare n chars of s1 and s2. */
extern int strncmp(const char *s1, const char *s2, size_t n);
/* Similar to strcmp but uses the collating sequence of the
current locale for collation (LC_COLLATE). */
extern int strcoll(const char *s1, const char *s2);
/* Transforms 'string' using the collation transformation
determined by the locale currently selected for collation,
and stores the transformed string in the array 'to'. Up
to 'size' characters are stored (including terminating null
character). */
extern size_t strxfrm(char *to, const char *string, size_t size);
/* Search n bytes of s for c. */
extern void *memchr(const void *s, int c, size_t n);
/* Find the first occurrence of c in s. */
extern char *strchr(const char *s, int c);
/* Return the length of the initial segment of s that consists
entirely of chars not in reject. */
extern size_t strcspn(const char *s, const char *reject);
/* Find the first occurence in s of any char in accept. */
extern char *strpbrk(const char *s, const char *accept);
/* Find the last occurrence of c in s. */
extern char *strrchr(const char *s, int c);
/* Return the length of the initial segment of s that consists
entirely of chars in accept. */
extern size_t strspn(const char *s, const char *accept);
/* Find the first occurrence of s in s1. */
extern char *strstr(const char *s, const char *s1);
/* Divide s into tokens separated by chars in delim. */
extern char *strtok(char *s, const char *delim);
/* Set n bytes of s to c. */
extern void *memset(void *s, int c, size_t n);
/* Return the descriptive error message string for an error code. */
extern char *strerror (int errnum);
/* Return the length of s. */
extern size_t strlen (const char *s);
#ifdef __cplusplus
}
#endif
#endif